home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
TPUG - Toronto PET Users Group
/
TPUG Users Group CD
/
TPUG Users Group CD.iso
/
C64
/
U-Utilities
/
(c)u1.d64
/
j_20 morse r_t.c
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2007-02-04
|
3KB
|
78 lines
10 GOTO200
15 FORL=ITOLEN(M$(A)):S$=MID$(M$(A),L,I):M=T:IFS$="-"THENM=DL
20 POKEWF,17:POKEAD,190:POKESR,248:FORD=ITOM:NEXT
21 POKEWF,0:POKEAD,0:POKESR,0:FORD=ITOES:NEXT:NEXT
30 FORD=ITOBF:GETK$:PRINTK$;
32 IFK$=CHR$(Q)ANDB$<>""THENB$=LEFT$(B$,LEN(B$)-I):GOTO30
34 IFK$=CHR$(QQ)THENB$="":PRINT"[147]":GOTO30
36 B$=B$+K$:NEXT
38 IFB$<>""THEN50
40 GETK$:IFK$=""THEN40
45 B$=K$:PRINTB$;
50 A=ASC(B$):B$=RIGHT$(B$,LEN(B$)-I):IFA>LLTHEN250
60 IFA=SPTHENFORD=ITOWS:NEXT:GOTO38
70 A=A-FF:IFA<ITHENA=I
80 GOTO15
90 GOTO20
100 IFPEEK(C)=ZTHENL=L+I:IFL<HTHEN100
110 L=Z:IFPEEK(C)=ZTHENPRINT" ";
112 IFPEEK(G)=YTHENPOKE198,Z:GOTO245
115 IFPEEK(C)=ZTHEN112
120 L=L+I:IFPEEK(C)THEN120
130 IFL>HTHENX=X+X:H=(E*H+L+L+N)/F:GOTO150
140 X=X+X+I:H=(H+H+H+L+L+J)/B
150 L=Z:IFX>RTHENX=I:GOTO100
160 IFPEEK(C)=ZTHENL=L+I:IFL+L<HTHEN160
170 IFNOTL+L<HTHEN190
180 IFPEEK(C)THENL=Z:GOTO100
190 PRINTMID$(R$,X,I);:X=I:L=Z:GOTO100
200 DIMM$(51):FORL=1TO51:READM$(L):NEXT:S=20:GOSUB601
210 PRINT"[144][147]J/20 MORSE SEND/REC":PRINT"SPEED (5 TO 80)"S"[157][157][157][157][157]";
215 INPUTS:IFS<5ORS>80THEN210
216 POKE54273,37:WF=54276:AD=54277:SR=54278:POKE54272,162
220 PRINT"[147]":POKE54296,15:Z=0:W=1:K=222:U=254:T=2300/S^1.25
225 BF=T/12:ES=7500/S^2:FF=39:LL=90:SP=32:WS=3*T:DL=3*T:IFS>30THENDL=4*T
230 R$=" TEMNAIOGKDWRUS??QZYCXBJP?L?FVH09?8???7?+&??/=61????)?@2???3!45"
235 R$=R$+"???????:????,?????(??;????????-??'????????.??'????????????$"
240 B=4:E=9:F=12:H=16:G=197:I=1:J=2:N=6:Q=20:QQ=19:R=122:X=1:Y=15:C=56321
245 PRINT:PRINTSPC(9)"XMT":GOTO40
250 IFA>132ANDA<141THENA=A-132:ONAGOTO310,330,350,370,320,340,360,380
255 IFA=141THENPRINTSPC(7)"RECEIVE":GOTO190
260 GOTO210
310 K$=" CQ CQ CQ DE W5VKC W5VKC K ":GOTO45
320 PRINT:PRINT:INPUT"STATION CALL";C$
325 PRINT:INPUT"NAME";N$
328 PRINT"[147]":GOTO40
330 K$=" "+C$+" DE W5VKC "+B$:GOTO45
340 K$=" QTH VAN ALSTYNE, TX ? VAN ALSTYNE, TX ABT 50 MI N DALLAS. = "+B$:GOTO45
350 K$="SO HW CPY "+N$+"? )[134]K":GOTO45
360 K$=" RIG HR TEN TEC CENTURY/21 INTO A DIPOLE = KEYING WID A COMMODORE 64"
361 K$=K$+" = FRIEND WB5AYD WROTE SOFTWARE = "+B$:GOTO45
370 B$="":PRINT"[147]"SPC(6)"COMPOSING"
371 GETK$:IFK$=CHR$(136)THENPRINT:PRINTSPC(6)" SENDING [146]":GOTO38
372 IFK$=""THEN371
373 PRINTK$;:IFASC(K$)>132THENPRINT""MID$("13572468",ASC(K$)-132,1)"[146]";
374 IFK$=CHR$(20)THENB$=LEFT$(B$,LEN(B$)-1):GOTO371
375 IFLEN(B$)=255THENPRINT"";:GOTO371
376 B$=B$+K$:GOTO371
380 K$=" DE W5VKC "+B$:GOTO45
500 DATA........,.-.-.,-...-.-,-.--.,--..--,...-.-,.-.-.-,-..-.
510 DATA-----,.----,..---,...--,....-,.....,-....,--...,---..,----.
520 DATA---...,-.-.-.,<,-...-,>,..--..,.-...
530 DATA.-,-...,-.-.,-..,.,..-.,--.,....,..,.---,-.-,.-..,--,-.
540 DATA---,.--.,--.-,.-.,...,-,..-,...-,.--,-..-,-.--,--..
601 POKE53281,1:PRINT"[147][144] 64 MORSE R/T"
602 PRINT" ADAPTED FOR THE 64":PRINT" BY"
603 PRINT" TIM HAM [146]"
604 PRINT" FROM 'J/20 MORSE R/T' BY R. MYERS"
605 PRINT" LIST 63000- FOR HOOKUP INFO.
606 [129]T[178]1[164]5000:[130]T:[142]
63000 WRITE: JOURNAL[173]20, BOX 1149 VAN ALSTYNE, TX. 75095
63001 : (214) 482[171]6679
63002 :
63003 : IN[160] A S.A.S.E [129] 20 CENTS [175] $1.00 [129] BACK ISSUE.
63004 : ASK [129] VOL.1 NO.12 [129]
63005 : THE RECIEVE [173] TRANSMIT CIRCUIT [129] J[173]20 M[176]SE.
63006 : JOURNAL[173]20 IS PUBLISHED EVERY TWO WEEKS BY MIKE APSEY. SUBSCRIPTI[145]
63007 : RATE IS $18.00 PER YEAR VIA FIRST CLASS MAIL.